package com.yanqu.road.entity.enums.activity.jiuzhou;

/**
 * 战斗的一些临时属性
 */
public enum eJiuZhouAttributeEnum {

    MaxAbilityPatronsId(1, "锁定最强门客Id"),
    MinAbilityPatronsId(2, "锁定最弱门客Id"),
    BanPatronsIds(3, "门客不出战列表(含禁用)"),
    MaxAbilityPatronsBattleLimit(5, "最强门客出战次数上限"),
    BattleLockHp(6, "锁血值"),
    BeforeBattleHp(7, "战前血量"),


    SuckBloodRadio(200, "吸血百分比(回合重置)"),
    AttackDamageLimit(201, "本次攻击伤害上限(回合重置)"),
    AttackDamageRadio(202, "本次攻击伤害加成(回合重置)"),
    AttackDamageValue(203, "本次攻击固定伤害增加值(回合重置)"),
    BattlePatronsId(204, "本回合出战门客Id(回合重置)"),
    BattleResult(205, "本回合战斗结果 （0败1胜）(回合重置)"),
    BattlePatronsDamage(206, "本回合门客可造成的伤害(回合重置) "),
    MaxAbilityPatronsBattleUp(207,"本回合最强门客额外出战概率(回合重置)  暂时废弃"),
    BattlePatronsDamageResult(208, "本回合门客实际造成的伤害(回合重置) 和上面的区分开"),
    TriggerLockHp(209, "本回合是否触发锁血(回合重置)"),
    BattlePatronsDamageClient(210, "本回合门客可造成的伤害(回合重置)  客户端展示剑用"),



    // 技能效果
    Skill110LockPatronsId(1001, "无懈可击锁定最强门客Id"),
    AttackBaseDamageLimit(1002, "本回合门客最高基础伤害限制"),


    ;


    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    private String name;

    eJiuZhouAttributeEnum(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static eJiuZhouAttributeEnum forValue(int type) {
        for (eJiuZhouAttributeEnum attributeEnum : values()) {
            if (attributeEnum.getType() == type) {
                return attributeEnum;
            }
        }
        return null;
    }
}
